<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内联框架</title>
</head>
<body>
    <iframe src="list.html"></iframe>
</body>
<script>
    var iframe=document.querySelector('iframe')
    // iframe.width=document.documentElement.offsetWidth
    // iframe.height=document.documentElement.clientHeight 
    setTimeout(function(){
    	iframe.contentWindow.check_Pending();
    	iframe.width=iframe.contentDocument.body.children[0].offsetWidth
    	iframe.height=iframe.contentDocument.body.children[0].offsetHeight
    },100)
    function look(){
    	console.log('xuancao')
    }
</script>
</html>